<?php

namespace app\api\controller;

use think\response\Json;

class Region extends Base
{
    public function getList(): Json
    {
        $list = app(\app\api\logic\Region::class)->getList();
        return $this->response($list);
    }

    public function getGroupList(): Json
    {
        $param = $this->request->param();
        $list = app(\app\api\logic\Region::class)->getGroupList($param);
        return $this->response($list);
    }
}